package com.matt.order.service;

import com.matt.order.dto.ProfitDto;
import com.matt.order.repository.ProfitListMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProfitListService {

    @Autowired
    ProfitListMapper profitListMapper;

    public void profitInfoInsert(ProfitDto profitDto) {
        profitListMapper.profitInfoInsert(profitDto);

    }

    public List<ProfitDto> profitInfoList(ProfitDto profitDto) {
        return profitListMapper.profitInfoList(profitDto);
    }

    public String profitSumInfo(ProfitDto profitDto) {
        return profitListMapper.profitSumInfo(profitDto);
    }

}
